home *** CD-ROM | disk | FTP | other *** search
/ Network PC / Network PC.iso / amiga utilities / graphics / display / mpega / src / mpega_decode_asm.i < prev    next >
Encoding:
Text File  |  1997-11-20  |  3.3 KB  |  123 lines

  1. ;------------------------------------------------------------------------------
  2. ;
  3. ;   File    :    mpega_decode_asm.i
  4. ;
  5. ;   Author  :    Stéphane TAVENARD
  6. ;
  7. ;   $VER:   mpega_decode_asm.i    1.1  (24.07.1995)
  8. ;
  9. ;   (C) Copyright 1995-1995 Stéphane TAVENARD
  10. ;    All Rights Reserved
  11. ;
  12. ;   #Rev|   Date   |              Comment
  13. ;   ----|----------|--------------------------------------------------------
  14. ;   0    |26/05/1995| Initial revision                      ST
  15. ;   1    |23/06/1995| Aminet release                      ST
  16. ;   2    |24/07/1995| Added Mixing frequency                  ST
  17. ;
  18. ;   ------------------------------------------------------------------------
  19. ;
  20. ;   Defintions for MPEG audio FAAAST decoding
  21. ;
  22. ;------------------------------------------------------------------------------
  23. ;
  24. ;
  25.              IFND     MPEGA_DECODE_ASM_I
  26. MPEGA_DECODE_ASM_I   set      1
  27.  
  28. SBLIMIT          equ      32
  29. HAN_SIZE         equ      512
  30. SCALE_RANGE         equ      64
  31. SCALE_BLOCK         equ      12
  32.  
  33. ; MPEG audio synchro
  34.  
  35. MPG_SYNC_WORD         equ      $FFF
  36. MPG_SYNC_WORD_LNGTH  equ   12
  37.  
  38. ; MPEG audio modes
  39.  
  40. MPG_MD_STEREO         equ      0
  41. MPG_MD_JOINT_STEREO  equ      1
  42. MPG_MD_DUAL_CHANNEL  equ      2
  43. MPG_MD_MONO         equ      3
  44.  
  45. ; BITSTREAM buffer size
  46.  
  47. BSTR_BUFFER_SIZE     equ      16384
  48.  
  49. ;           definition of bitfield structure "alloc table"
  50. ALLOC_O_STEPS  equ    0     ; unsigned int steps:16
  51. ALLOC_W_STEPS  equ    16
  52. ALLOC_O_SHIFT  equ    16    ; unsigned int shift:4
  53. ALLOC_W_SHIFT  equ    4
  54. ALLOC_O_BITS   equ    20    ; unsigned int bits:5
  55. ALLOC_W_BITS   equ    5
  56. ALLOC_O_GROUP  equ    25    ; unsigned int group:2
  57. ALLOC_W_GROUP  equ    2
  58. ALLOC_O_QUANT  equ    27    ; unsigned int quant:5
  59. ALLOC_W_QUANT  equ    5
  60.  
  61. ALLOC_B_GROUP  equ    6
  62.  
  63. INT_FACTOR     equ    14
  64.  
  65. HEADER            rsreset
  66. hdr_version        rs.l  1
  67. hdr_lay         rs.l  1
  68. hdr_error_protection    rs.l  1
  69. hdr_bitrate_index    rs.l  1
  70. hdr_sampling_frequency    rs.l  1
  71. hdr_padding        rs.l  1
  72. hdr_extension        rs.l  1
  73. hdr_mode        rs.l  1
  74. hdr_mode_ext        rs.l  1
  75. hdr_copyright        rs.l  1
  76. hdr_original        rs.l  1
  77. hdr_emphasis        rs.l  1
  78. hdr_sizeof        rs.l  0
  79.  
  80. FRAME_PARAMS        rsreset
  81. fp_header        rs.l  1     ; header *
  82. fp_actual_mode        rs.l  1     ; int
  83. fp_alloc        rs.l  1     ; al_table *
  84. fp_tab_num        rs.l  1     ; int
  85. fp_stereo        rs.l  1     ; int
  86. fp_jsbound        rs.l  1     ; int
  87. fp_sblimit        rs.l  1     ; int
  88. fp_channels        rs.l  1     ; int
  89. fp_bit_alloc        rs.l  1     ; int *
  90. fp_scfsi        rs.l  1     ; int *
  91. fp_scale_index        rs.l  1     ; int *
  92. fp_sample        rs.l  1     ; int *
  93. fp_fraction        rs.l  1     ; INT *
  94. fp_bitstream_name    rs.l  1     ; char *
  95. fp_bs            rs.l  1     ; BITSTREAM *
  96. fp_out_buffer        rs.l  2     ; BYTE *
  97. fp_out_buffer_size    rs.l  1     ; long
  98. fp_freq_div        rs.l  1     ; int
  99. fp_output_8bits     rs.l  1     ; int
  100. fp_quality        rs.l  1     ; int
  101. fp_mono_forced        rs.l  1     ; int
  102. fp_play         rs.l  1     ; int
  103. fp_audio_filter     rs.l  1     ; int
  104. fp_out_file_name    rs.l  1     ; char *
  105. fp_out_file_type    rs.l  1     ; int
  106. fp_out_file        rs.l  1     ; FILE *
  107. fp_sub_band_size    rs.l  1     ; int
  108. fp_got_bits        rs.l  1     ; int
  109. fp_frame_count        rs.l  1     ; int
  110. fp_out_write_level    rs.l  1     ; int
  111. fp_out_write_length    rs.l  1     ; int
  112. fp_out_sample_length    rs.l  1     ; int
  113. fp_out_sample_freq    rs.l  1     ; int
  114. fp_bitstream_rate    rs.l  1     ; int
  115. fp_bitstream_freq    rs.l  1     ; int
  116. fp_bitstream_buffer_size rs.l 1     ; int
  117. fp_audio_port        rs.l  1     ; AU_PORT *
  118. fp_no_audio_wait    rs.l  1     ; int
  119. fp_mixing_frequency    rs.l  1     ; int   /* Use mixing if > 0  #3 */
  120. fp_sizeof        rs.l  0
  121.  
  122.             ENDC        ; MPEGA_DECODE_ASM_I
  123.